// # 接口说明
// ## 菜单库初始化是通过查询接口获取数据
// 所有的ajax都是在api/menu.js中
// - url:http://172.17.99.30:10014/api/jp-HCZZ-AdminWeb-app-ms/menu/queryByName?name=%E8%AD%A6%E6%83%85&type=0&curPage=0&pageSize=18
// > name 为空的话就是获取全部数据，type(0:菜单;1:方案), curPage第一页从0开始
//返回数据
var res = {
  "menuList": [{
	"id": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
	"name": "待办模块",
	"displayName": "待办模块",
	"linkModel": {
		"id": "cabffee4-cac7-4f88-bac3-bb18792632ff",
		"name": "6",
		"url": "6",
		"createUserId": "zhoupeng",
		"createTime": "2018-08-13T19:11:40.0000000+08:00",
		"updateUserId": null,
		"updateTime": null
	},
	"target": "menu",
	"pid": null,
	"imgModel": {
		"id": "ef636b9f-841b-4c24-9636-3d13ada4353f",
		"storeId": "fc2a7a55-c531-47bc-bab5-72ab50b6bebe",
		"name": "火车站巡控平台",
		"createUserId": "2BCC5C5D-3B9A-4D8C-AC91-FD8CD2529B6E",
		"createTime": "2018-07-10T18:07:18.0000000+08:00",
		"updateUserId": null,
		"updateTime": null
	},
	"remark": null,
	"sort": 123,
	"type": "WPF_9",
	"children": [{
		"id": "082CFEB0-619F-41AB-9E13-78A7E1A25A2A",
		"name": "回退警情",
		"displayName": "回退警情",
		"linkModel": {
			"id": "8aa9ad96-ce29-428f-ad31-543802f37d23",
			"name": "2",
			"url": "2",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T19:59:25.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": {
			"id": "7cae7d23-c773-4674-92c4-b2c0b6c4523a",
			"storeId": "d5a849f8-f016-4ad4-945c-1606d82ccd66",
			"name": "审批",
			"createUserId": "test-renwei",
			"createTime": "2018-06-29T02:03:00.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"remark": null,
		"sort": 123,
		"type": "WPF_9",
		"children": [{
			"id": "60243543-bcaf-49db-96f3-9ea2259ea16b",
			"name": "回退警情1",
			"displayName": "回退警情1",
			"linkModel": null,
			"target": "menu",
			"pid": "082CFEB0-619F-41AB-9E13-78A7E1A25A2A",
			"imgModel": null,
			"remark": "回退警情1111",
			"sort": 0,
			"type": "WPF_9",
			"children": null
		}]
	}, {
		"id": "12A4BB97-A8C3-422D-B615-33A629C87FA5",
		"name": "警情逻辑删除",
		"displayName": "警情逻辑删除",
		"linkModel": {
			"id": "7f887902-88a7-47dd-aa59-80adbc46d0a8",
			"name": "8",
			"url": "8",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T20:00:02.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": null,
		"sort": 123,
		"type": "WPF_9",
		"children": null
	}, {
		"id": "23FB1BFA-AC91-488F-9B52-F0702AFF3E3E",
		"name": "转处理警情",
		"displayName": "转处理警情",
		"linkModel": {
			"id": "cabffee4-cac7-4f88-bac3-bb18792632ff",
			"name": "6",
			"url": "6",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T19:11:40.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": {
			"id": "7cae7d23-c773-4674-92c4-b2c0b6c4523a",
			"storeId": "d5a849f8-f016-4ad4-945c-1606d82ccd66",
			"name": "审批",
			"createUserId": "test-renwei",
			"createTime": "2018-06-29T02:03:00.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"remark": null,
		"sort": 123,
		"type": "WPF_9",
		"children": null
	}, {
		"id": "259c7279-938d-4ff2-ab05-3e1f0c4cfdee",
		"name": "数据权限3",
		"displayName": "数据权限3",
		"linkModel": null,
		"target": "dataobject",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": "string",
		"sort": 0,
		"type": null,
		"children": [{
			"id": "492085b2-534c-4a73-8666-3d26015613cc",
			"name": "数据权限3",
			"displayName": "数据权限xx",
			"linkModel": null,
			"target": "dataobject",
			"pid": "259c7279-938d-4ff2-ab05-3e1f0c4cfdee",
			"imgModel": null,
			"remark": "string",
			"sort": 0,
			"type": null,
			"children": null
		}, {
			"id": "d60cd8ad-2058-4a5f-80f0-9ebdfa2116df",
			"name": "数据权限xxx",
			"displayName": "数据权限xxx",
			"linkModel": null,
			"target": "dataobject",
			"pid": "259c7279-938d-4ff2-ab05-3e1f0c4cfdee",
			"imgModel": null,
			"remark": "string",
			"sort": 0,
			"type": null,
			"children": null
		}]
	}, {
		"id": "4F948952-3503-466C-B759-E9BB57EB61A6",
		"name": "分派警情",
		"displayName": "分派警情",
		"linkModel": {
			"id": "8aa9ad96-ce29-428f-ad31-543802f37d23",
			"name": "2",
			"url": "2",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T19:59:25.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": {
			"id": "1b99e37f-84a8-4e3f-b12c-ec8c63753bff",
			"storeId": "064fcbad-c414-4f64-85f5-07136c1fa517",
			"name": null,
			"createUserId": null,
			"createTime": null,
			"updateUserId": null,
			"updateTime": null
		},
		"remark": null,
		"sort": 123,
		"type": "WPF_9",
		"children": null
	}, {
		"id": "6091cef3-9cf0-451e-a719-610033542e71",
		"name": "待办2",
		"displayName": "待办2",
		"linkModel": null,
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": "待办2",
		"sort": 0,
		"type": "WPF_9",
		"children": null
	}, {
		"id": "673B1F2D-F8A9-4FD1-A9BF-0067BD07F0DD",
		"name": "警情回告",
		"displayName": "警情回告",
		"linkModel": {
			"id": "7f887902-88a7-47dd-aa59-80adbc46d0a8",
			"name": "8",
			"url": "8",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T20:00:02.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": null,
		"sort": 123,
		"type": "WPF_9",
		"children": null
	}, {
		"id": "6b6a85d1-84db-4596-8f3f-efe5968aedc5",
		"name": "wz123",
		"displayName": "11",
		"linkModel": {
			"id": "7f887902-88a7-47dd-aa59-80adbc46d0a8",
			"name": "8",
			"url": "8",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T20:00:02.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": "1",
		"sort": 200,
		"type": null,
		"children": [{
			"id": "04307af6-961c-4547-a21c-c83c76ed183e",
			"name": "3级菜单",
			"displayName": "3级菜单",
			"linkModel": {
				"id": "14f860cb-5dc8-4873-8f99-0ae82b4fd4bb",
				"name": "3",
				"url": "3",
				"createUserId": "zhoupeng",
				"createTime": "2018-08-13T19:59:30.0000000+08:00",
				"updateUserId": null,
				"updateTime": null
			},
			"target": "menu",
			"pid": "6b6a85d1-84db-4596-8f3f-efe5968aedc5",
			"imgModel": {
				"id": "5f380b32-8adc-4f27-817b-f9e6199a8bda",
				"storeId": "857fbeef-b2fd-4dc1-83c3-22b65600af6e",
				"name": "可视化扁平指挥",
				"createUserId": "test-renwei",
				"createTime": "2018-06-29T02:03:00.0000000+08:00",
				"updateUserId": null,
				"updateTime": null
			},
			"remark": "3级菜单",
			"sort": 0,
			"type": "WPF_10",
			"children": [{
				"id": "bf9d577b-fa3a-4b35-abdd-1fcda8136622",
				"name": "4级菜单",
				"displayName": "4级菜单",
				"linkModel": null,
				"target": "menu",
				"pid": "04307af6-961c-4547-a21c-c83c76ed183e",
				"imgModel": null,
				"remark": "4级菜单，我真的是4级菜单",
				"sort": 0,
				"type": "WPF_9",
				"children": null
			}]
		}]
	}, {
		"id": "76255B19-5353-41DB-9FAD-22ED0ED4190B",
		"name": "指令反馈",
		"displayName": "指令反馈",
		"linkModel": {
			"id": "cabffee4-cac7-4f88-bac3-bb18792632ff",
			"name": "6",
			"url": "6",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T19:11:40.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": {
			"id": "295557da-2c68-435f-9001-9347b4a1d70e",
			"storeId": "5d89911c-82c2-4853-94c7-ff803178b384",
			"name": "110接处警",
			"createUserId": "2BCC5C5D-3B9A-4D8C-AC91-FD8CD2529B6E",
			"createTime": "2018-07-10T18:10:16.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"remark": null,
		"sort": 123,
		"type": null,
		"children": null
	}, {
		"id": "7C19396E-B73B-4313-9A36-A08B34BF2E4D",
		"name": "发送指令",
		"displayName": "发送指令",
		"linkModel": {
			"id": "8aa9ad96-ce29-428f-ad31-543802f37d23",
			"name": "2",
			"url": "2",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T19:59:25.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": {
			"id": "7cae7d23-c773-4674-92c4-b2c0b6c4523a",
			"storeId": "d5a849f8-f016-4ad4-945c-1606d82ccd66",
			"name": "审批",
			"createUserId": "test-renwei",
			"createTime": "2018-06-29T02:03:00.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"remark": null,
		"sort": 200,
		"type": null,
		"children": null
	}, {
		"id": "FB0C98C7-BEF1-4B7D-AC2F-09458C27EC39",
		"name": "警力不足",
		"displayName": "警力不足",
		"linkModel": {
			"id": "cabffee4-cac7-4f88-bac3-bb18792632ff",
			"name": "6",
			"url": "6",
			"createUserId": "zhoupeng",
			"createTime": "2018-08-13T19:11:40.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": {
			"id": "295557da-2c68-435f-9001-9347b4a1d70e",
			"storeId": "5d89911c-82c2-4853-94c7-ff803178b384",
			"name": "110接处警",
			"createUserId": "2BCC5C5D-3B9A-4D8C-AC91-FD8CD2529B6E",
			"createTime": "2018-07-10T18:10:16.0000000+08:00",
			"updateUserId": null,
			"updateTime": null
		},
		"remark": null,
		"sort": 123,
		"type": null,
		"children": null
	}, {
		"id": "a1d7123e-3344-4783-a57d-9c188ed56e96",
		"name": "数据权限1",
		"displayName": "数据权限1",
		"linkModel": null,
		"target": "dataobject",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": "string",
		"sort": 0,
		"type": null,
		"children": null
	}, {
		"id": "b624ea89-73b2-40ef-b219-ba3a38fd0276",
		"name": "待办1",
		"displayName": "待办1",
		"linkModel": null,
		"target": "menu",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": "待办1",
		"sort": 0,
		"type": "WPF_9",
		"children": null
	}, {
		"id": "fd943c84-f890-495e-9884-6c089d80cb29",
		"name": "数据权限2",
		"displayName": "数据权限2",
		"linkModel": null,
		"target": "dataobject",
		"pid": "18EDE7E5-3B52-4B93-8F9A-93FC7842A73D",
		"imgModel": null,
		"remark": "string",
		"sort": 0,
		"type": null,
		"children": null
	}]
}, {
	"id": "0e97d5f9-6ae5-4011-9b08-4eb605e5e90b",
	"name": "测试方案2",
	"displayName": "测试方案2",
	"linkModel": null,
	"target": "menu",
	"pid": null,
	"imgModel": {
		"id": "1830612b-a986-4183-9d79-46ec91786a88",
		"storeId": "1098c819-84f0-4de8-bfd0-412a7861c0c0",
		"name": "十宫格预览",
		"createUserId": "2BCC5C5D-3B9A-4D8C-AC91-FD8CD2529B6E",
		"createTime": "2018-07-10T17:38:10.0000000+08:00",
		"updateUserId": null,
		"updateTime": null
	},
	"remark": "11",
	"sort": 3,
	"type": "WPF_10",
	"children": [{
		"id": "47b94c9c-18d4-4049-ba1c-af0237c4fc0a",
		"name": "测试方案2.2",
		"displayName": "测试方案2.2",
		"linkModel": null,
		"target": "menu",
		"pid": "0e97d5f9-6ae5-4011-9b08-4eb605e5e90b",
		"imgModel": null,
		"remark": "测试方案2.2",
		"sort": 0,
		"type": null,
		"children": null
	}, {
		"id": "4c96645c-8813-4687-b012-cb3e01b38762",
		"name": "测试方案2.1",
		"displayName": "测试方案2.1",
		"linkModel": null,
		"target": "menu",
		"pid": "0e97d5f9-6ae5-4011-9b08-4eb605e5e90b",
		"imgModel": null,
		"remark": "测试方案2.1",
		"sort": 0,
		"type": "WPF_10",
		"children": [{
			"id": "9ebcca35-7436-4141-a17c-5234c9c4bd68",
			"name": "测试方案2.1.1",
			"displayName": "测试方案2.1.1",
			"linkModel": null,
			"target": "menu",
			"pid": "4c96645c-8813-4687-b012-cb3e01b38762",
			"imgModel": null,
			"remark": "测试方案2.1.1",
			"sort": 0,
			"type": "WPF_10",
			"children": null
		}]
	}]
}, {
	"id": "5a3e4f7e-2393-4a22-8d52-a79fdd925673",
	"name": "方案1",
	"displayName": "方案1",
	"linkModel": null,
	"target": "menu",
	"pid": null,
	"imgModel": {
		"id": "5f380b32-8adc-4f27-817b-f9e6199a8bda",
		"storeId": "857fbeef-b2fd-4dc1-83c3-22b65600af6e",
		"name": "可视化扁平指挥",
		"createUserId": "test-renwei",
		"createTime": "2018-06-29T02:03:00.0000000+08:00",
		"updateUserId": null,
		"updateTime": null
	},
	"remark": "方案1,测试修改1",
	"sort": 0,
	"type": "WPF_9",
	"children": [{
		"id": "3a402534-b2a4-490a-b432-97abf0540da6",
		"name": "方案1.4",
		"displayName": "方案1.4",
		"linkModel": null,
		"target": "menu",
		"pid": "5a3e4f7e-2393-4a22-8d52-a79fdd925673",
		"imgModel": null,
		"remark": "方案1.4",
		"sort": 0,
		"type": null,
		"children": [{
			"id": "132ec6b8-8baa-4ada-99a4-37aec88a6697",
			"name": "方案1.4.1",
			"displayName": "方案1.4.1",
			"linkModel": null,
			"target": "menu",
			"pid": "3a402534-b2a4-490a-b432-97abf0540da6",
			"imgModel": null,
			"remark": "方案1.4.1",
			"sort": 0,
			"type": null,
			"children": null
		}]
	}, {
		"id": "4afc6ee1-c815-49ae-b1a3-e077bf0a8439",
		"name": "方案1.1",
		"displayName": "方案1.1",
		"linkModel": null,
		"target": "menu",
		"pid": "5a3e4f7e-2393-4a22-8d52-a79fdd925673",
		"imgModel": null,
		"remark": "方案1.1",
		"sort": 0,
		"type": "WPF_9",
		"children": [{
			"id": "3dcf0500-dd91-46ca-8e1d-90c294857f24",
			"name": "方案1.1.1",
			"displayName": "方案1.1.1",
			"linkModel": null,
			"target": "menu",
			"pid": "4afc6ee1-c815-49ae-b1a3-e077bf0a8439",
			"imgModel": null,
			"remark": "方案1.1.1",
			"sort": 0,
			"type": "WPF_9",
			"children": [{
				"id": "32f64866-f9ec-49e6-b187-2def7720fb86",
				"name": "方案1.1.1.1",
				"displayName": "方案1.1.1.1",
				"linkModel": null,
				"target": "menu",
				"pid": "3dcf0500-dd91-46ca-8e1d-90c294857f24",
				"imgModel": null,
				"remark": "方案1.1.1.1",
				"sort": 0,
				"type": "WPF_9",
				"children": null
			}]
		}]
	}, {
		"id": "61b51c29-6a9a-4117-b0c7-525d6257346a",
		"name": "方案1.5",
		"displayName": "方案1.5",
		"linkModel": null,
		"target": "menu",
		"pid": "5a3e4f7e-2393-4a22-8d52-a79fdd925673",
		"imgModel": null,
		"remark": "方案1.5",
		"sort": 0,
		"type": null,
		"children": [{
			"id": "6c37c984-b922-43f8-91d2-49322ce7d427",
			"name": "方案1.5.1",
			"displayName": "方案1.5.1",
			"linkModel": null,
			"target": "menu",
			"pid": "61b51c29-6a9a-4117-b0c7-525d6257346a",
			"imgModel": null,
			"remark": "方案1.5.1",
			"sort": 0,
			"type": null,
			"children": [{
				"id": "051260aa-e93a-43e4-b398-6a74f689a931",
				"name": "方案1.5.1.1",
				"displayName": "方案1.5.1.1",
				"linkModel": null,
				"target": "menu",
				"pid": "6c37c984-b922-43f8-91d2-49322ce7d427",
				"imgModel": null,
				"remark": "方案1.5.1.1",
				"sort": 0,
				"type": null,
				"children": null
			}]
		}]
	}, {
		"id": "b1e4458b-e55a-4d75-8e35-f33d502563a7",
		"name": "方案1.2",
		"displayName": "方案1.2",
		"linkModel": null,
		"target": "menu",
		"pid": "5a3e4f7e-2393-4a22-8d52-a79fdd925673",
		"imgModel": null,
		"remark": "方案1.2",
		"sort": 0,
		"type": "WPF_9",
		"children": [{
			"id": "6d31687b-2812-49b5-b3ca-d08f3a499ded",
			"name": "方案1.2.1",
			"displayName": "方案1.2.1",
			"linkModel": null,
			"target": "menu",
			"pid": "b1e4458b-e55a-4d75-8e35-f33d502563a7",
			"imgModel": null,
			"remark": "方案1.2.1",
			"sort": 0,
			"type": "WPF_9",
			"children": null
		}]
	}, {
		"id": "d976bf42-9bbb-4bce-a3b2-965df839fe03",
		"name": "方案1.3",
		"displayName": "方案1.3",
		"linkModel": null,
		"target": "menu",
		"pid": "5a3e4f7e-2393-4a22-8d52-a79fdd925673",
		"imgModel": null,
		"remark": "方案1.3",
		"sort": 0,
		"type": "WPF_9",
		"children": [{
			"id": "24c95fe3-436a-44c1-afdd-23779dd73fc6",
			"name": "方案1.3.1",
			"displayName": "方案1.3.1",
			"linkModel": null,
			"target": "menu",
			"pid": "d976bf42-9bbb-4bce-a3b2-965df839fe03",
			"imgModel": null,
			"remark": "方案1.3.1",
			"sort": 0,
			"type": "WPF_9",
			"children": [{
				"id": "947e38e7-2790-4b5c-8780-572b1097b9c8",
				"name": "方案1.3.1.1",
				"displayName": "方案1.3.1.1",
				"linkModel": null,
				"target": "menu",
				"pid": "24c95fe3-436a-44c1-afdd-23779dd73fc6",
				"imgModel": null,
				"remark": "方案1.3.1.1",
				"sort": 0,
				"type": "WPF_9",
				"children": [{
					"id": "29599ec9-0e70-4279-b465-2120789a09e7",
					"name": "方案1.3.1.1.1",
					"displayName": "方案1.3.1.1.1",
					"linkModel": null,
					"target": "menu",
					"pid": "947e38e7-2790-4b5c-8780-572b1097b9c8",
					"imgModel": null,
					"remark": "方案1.3.1.1.1",
					"sort": 0,
					"type": "WPF_9",
					"children": [{
						"id": "b64e400c-1070-48fb-a880-4d2ed5bd4561",
						"name": "方案1.3.1.1.1.1",
						"displayName": "方案1.3.1.1.1.1",
						"linkModel": null,
						"target": "menu",
						"pid": "29599ec9-0e70-4279-b465-2120789a09e7",
						"imgModel": null,
						"remark": "方案1.3.1.1.1.1",
						"sort": 0,
						"type": "WPF_9",
						"children": null
					}]
				}]
			}]
		}]
	}]
}, {
	"id": "3ec6e82a-9316-4b36-9216-116506d0b4f7",
	"name": "1",
	"displayName": "1",
	"linkModel": null,
	"target": "menu",
	"pid": null,
	"imgModel": null,
	"remark": "111",
	"sort": 0,
	"type": "QS",
	"children": [{
		"id": "a5649d1a-4710-48da-9a38-abb4392801fb",
		"name": "1.1",
		"displayName": "1.1",
		"linkModel": null,
		"target": "menu",
		"pid": "3ec6e82a-9316-4b36-9216-116506d0b4f7",
		"imgModel": null,
		"remark": "1111",
		"sort": 0,
		"type": "DEFAULT",
		"children": null
	}]
}],
  "count": 7
}

//## 新建菜单接口
//http://172.17.99.30:10014/api/jp-HCZZ-AdminWeb-app-ms/swagger-ui.html#/

// menuInfo {
//   "displayName": "test",               //显示名称
//   "image": "string",                   //图片素材的id
//   "name": "string",                    //菜单名称
//   "remark": "string",                  //标记
//   "sort": 0,                           //排序
//   "target": "menu",                    //('resource','exe','img','html','menu','dataobject')
//   "type": "string",                    //wpf_9 wpf_10(对应根菜单的)
//   "uri": "string"                      //素材链接的id
// }

// Request URL http://172.17.99.30:10014/api/jp-HCZZ-AdminWeb-app-ms/menu/add
